package tw.com.to;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;

@Entity(name = "CDI_TODO")
@Table(name = "CDI_TODO")
public class CDI_TODO {
	
	private String CDIID;
	@Id
	private int Seq;
	private String StateType5;
	private String StartDate5;
	private String JobContent5;
	private String ServeUnit5;
	private String ServeUser5;
	private String ReplyDate5;
	private String PlanFinishDate5;
	private String RealFinishDate5;
	private String JobExplain5;
	private String CheckResult5;
	private String CheckDate5;
	private String CheckUser5;
	private String CheckReplyDate5;
	private String LeaderCheck5;
	private String LeaderCheckDate5;
	private String LeaderOpinion5;
	private String NewOrModify;
	private String DocMainType;
	private String DocType;
	private String Status;
	private String QCCheckDate;
	private String QCCheckUser;
	private String JobMemo;
	private String HopeDate;

	public String getCDIID() {
		return CDIID;
	}

	public void setCDIID(String cDIID) {
		CDIID = cDIID;
	}

	public int getSeq() {
		return Seq;
	}

	public void setSeq(int seq) {
		Seq = seq;
	}

	public String getStateType5() {
		return StateType5;
	}

	public void setStateType5(String stateType5) {
		StateType5 = stateType5;
	}

	public String getStartDate5() {
		if (StringUtils.isNotBlank(StartDate5)) {
			return StartDate5.substring(0, 10);
		}
		return StartDate5;
	}

	public void setStartDate5(String startDate5) {
		StartDate5 = startDate5;
	}

	public String getJobContent5() {
		return JobContent5;
	}

	public void setJobContent5(String jobContent5) {
		JobContent5 = jobContent5;
	}

	public String getServeUnit5() {
		return ServeUnit5;
	}

	public void setServeUnit5(String serveUnit5) {
		ServeUnit5 = serveUnit5;
	}

	public String getServeUser5() {
		return ServeUser5;
	}

	public void setServeUser5(String serveUser5) {
		ServeUser5 = serveUser5;
	}

	public String getReplyDate5() {
		if (StringUtils.isNotBlank(ReplyDate5)) {
			return ReplyDate5.substring(0, 10);
		}
		return ReplyDate5;
	}

	public void setReplyDate5(String replyDate5) {
		ReplyDate5 = replyDate5;
	}

	public String getPlanFinishDate5() {
		if (StringUtils.isNotBlank(PlanFinishDate5)) {
			return PlanFinishDate5.substring(0, 10);
		}
		return PlanFinishDate5;
	}

	public void setPlanFinishDate5(String planFinishDate5) {
		PlanFinishDate5 = planFinishDate5;
	}

	public String getRealFinishDate5() {
		if (StringUtils.isNotBlank(RealFinishDate5)) {
			return RealFinishDate5.substring(0, 10);
		}
		return RealFinishDate5;
	}

	public void setRealFinishDate5(String realFinishDate5) {
		RealFinishDate5 = realFinishDate5;
	}

	public String getJobExplain5() {
		return JobExplain5;
	}

	public void setJobExplain5(String jobExplain5) {
		JobExplain5 = jobExplain5;
	}

	public String getCheckResult5() {
		return CheckResult5;
	}

	public void setCheckResult5(String checkResult5) {
		CheckResult5 = checkResult5;
	}

	public String getCheckDate5() {
		return CheckDate5;
	}

	public void setCheckDate5(String checkDate5) {
		CheckDate5 = checkDate5;
	}

	public String getCheckUser5() {
		return CheckUser5;
	}

	public void setCheckUser5(String checkUser5) {
		CheckUser5 = checkUser5;
	}

	public String getCheckReplyDate5() {
		if (StringUtils.isNotBlank(CheckReplyDate5)) {
			return CheckReplyDate5.substring(0, 10);
		}
		return CheckReplyDate5;
	}

	public void setCheckReplyDate5(String checkReplyDate5) {
		CheckReplyDate5 = checkReplyDate5;
	}

	public String getLeaderCheck5() {
		return LeaderCheck5;
	}

	public void setLeaderCheck5(String leaderCheck5) {
		LeaderCheck5 = leaderCheck5;
	}

	public String getLeaderCheckDate5() {
		if (StringUtils.isNotBlank(LeaderCheckDate5)) {
			return LeaderCheckDate5.substring(0, 10);
		}
		return LeaderCheckDate5;
	}

	public void setLeaderCheckDate5(String leaderCheckDate5) {
		LeaderCheckDate5 = leaderCheckDate5;
	}

	public String getLeaderOpinion5() {
		return LeaderOpinion5;
	}

	public void setLeaderOpinion5(String leaderOpinion5) {
		LeaderOpinion5 = leaderOpinion5;
	}

	public String getNewOrModify() {
		return NewOrModify;
	}

	public void setNewOrModify(String newOrModify) {
		NewOrModify = newOrModify;
	}

	public String getDocMainType() {
		return DocMainType;
	}

	public void setDocMainType(String docMainType) {
		DocMainType = docMainType;
	}

	public String getDocType() {
		return DocType;
	}

	public void setDocType(String docType) {
		DocType = docType;
	}

	public String getStatus() {
		return Status;
	}

	public void setStatus(String status) {
		Status = status;
	}

	public String getQCCheckDate() {
		if (StringUtils.isNotBlank(QCCheckDate)) {
			return QCCheckDate.substring(0, 10);
		}
		return QCCheckDate;
	}

	public void setQCCheckDate(String qCCheckDate) {
		QCCheckDate = qCCheckDate;
	}

	public String getQCCheckUser() {
		return QCCheckUser;
	}

	public void setQCCheckUser(String qCCheckUser) {
		QCCheckUser = qCCheckUser;
	}

	public String getJobMemo() {
		return JobMemo;
	}

	public void setJobMemo(String jobMemo) {
		JobMemo = jobMemo;
	}

	public String getHopeDate() {
		if (StringUtils.isNotBlank(HopeDate)) {
			return HopeDate.substring(0, 10);
		}
		return HopeDate;
	}

	public void setHopeDate(String hopeDate) {
		HopeDate = hopeDate;
	}

}
